﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace Chisholm.Windows.Live.SSOServer
{
    public partial class SSOServer : ServiceBase
    {
        /// <summary>
        /// This initialises the hoste service
        /// </summary>
        public SSOServer()
        {
            InitializeComponent();
        }

        /// <summary>
        /// This loads the underlying WCF service and exposes it
        /// </summary>
        protected override void OnStart(string[] args)
        {
            // Start our connection
            ServiceManager.StartService();
        }

        /// <summary>
        /// This shuts down the WCF service
        /// </summary>
        protected override void OnStop()
        {
            // Stop our connection
            ServiceManager.StopService();
        }
    }
}
